<script>
export default {
  data() {
    return {};
  },
  methods: {
    outLogin() {
      this.$store.commit("setOutLogin");
      this.$router.replace("/login");
    },

    routerPush() {
      this.$router.push("/setting_version");
    },
    onClickLeft() {
      this.$router.go(-1);
    },
  },
};
</script>
<template>
  <div>
    <van-nav-bar title="关于">
      <template #left>
        <span
          style="font-size: 30px; background-color: #06c68a; padding: 4px 0"
          @click="$router.go(-1)"
          class="tc ting-fanhui"
          >返回
        </span>
      </template>
    </van-nav-bar>
    <div class="setting">
      <van-cell-group>
        <van-cell title="切换停车场" @click="outLogin()" is-link />
        <van-cell title="关于" @click="routerPush" is-link />
      </van-cell-group>
    </div>
  </div>
</template>
<style scoped>
.setting {
  width: calc(100% - 24px);
  margin: 10px auto 0 auto;
}
</style>
